package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.CaseComplaintMeansMapper;
import com.ktgj.customer.domain.CaseComplaintMeans;
import com.ktgj.customer.service.ICaseComplaintMeansService;

/**
 * 投诉工单_投诉方式Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-27
 */
@Service
public class CaseComplaintMeansServiceImpl implements ICaseComplaintMeansService 
{
    @Autowired
    private CaseComplaintMeansMapper caseComplaintMeansMapper;

    /**
     * 查询投诉工单_投诉方式
     * 
     * @param complaintMeansId 投诉工单_投诉方式ID
     * @return 投诉工单_投诉方式
     */
    @Override
    public CaseComplaintMeans selectCaseComplaintMeansById(Long complaintMeansId)
    {
        return caseComplaintMeansMapper.selectCaseComplaintMeansById(complaintMeansId);
    }

    /**
     * 查询投诉工单_投诉方式列表
     * 
     * @param caseComplaintMeans 投诉工单_投诉方式
     * @return 投诉工单_投诉方式
     */
    @Override
    public List<CaseComplaintMeans> selectCaseComplaintMeansList(CaseComplaintMeans caseComplaintMeans)
    {
        return caseComplaintMeansMapper.selectCaseComplaintMeansList(caseComplaintMeans);
    }

    /**
     * 新增投诉工单_投诉方式
     * 
     * @param caseComplaintMeans 投诉工单_投诉方式
     * @return 结果
     */
    @Override
    public int insertCaseComplaintMeans(CaseComplaintMeans caseComplaintMeans)
    {
        return caseComplaintMeansMapper.insertCaseComplaintMeans(caseComplaintMeans);
    }

    /**
     * 修改投诉工单_投诉方式
     * 
     * @param caseComplaintMeans 投诉工单_投诉方式
     * @return 结果
     */
    @Override
    public int updateCaseComplaintMeans(CaseComplaintMeans caseComplaintMeans)
    {
        return caseComplaintMeansMapper.updateCaseComplaintMeans(caseComplaintMeans);
    }

    /**
     * 批量删除投诉工单_投诉方式
     * 
     * @param complaintMeansIds 需要删除的投诉工单_投诉方式ID
     * @return 结果
     */
    @Override
    public int deleteCaseComplaintMeansByIds(Long[] complaintMeansIds)
    {
        return caseComplaintMeansMapper.deleteCaseComplaintMeansByIds(complaintMeansIds);
    }

    /**
     * 删除投诉工单_投诉方式信息
     * 
     * @param complaintMeansId 投诉工单_投诉方式ID
     * @return 结果
     */
    @Override
    public int deleteCaseComplaintMeansById(Long complaintMeansId)
    {
        return caseComplaintMeansMapper.deleteCaseComplaintMeansById(complaintMeansId);
    }
    /**
     * 查询投诉工单_投诉方式列表
     * @return
     */
    @Override
    public List<CaseComplaintMeans> selectMeansList()
    {
        return caseComplaintMeansMapper.selectMeansList();
    }
}
